package team.bluepen.supermarket;

import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.boot.context.properties.ConfigurationPropertiesScan;

import java.io.InputStream;

@SpringBootApplication
@ConfigurationPropertiesScan
public class SupermarketStatSystemApplication {

    public static void main(String[] args) {
        SpringApplication.run(SupermarketStatSystemApplication.class, args);
    }

    public static InputStream loadResource(String path) {
        return SupermarketStatSystemApplication.class.getResourceAsStream(path);
    }
}
